﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.IO;

namespace kwzx.Common
{
    public static class SPicUtils
    {

        public static string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "img\\");




        public static Image PicConvert(string filePath)
        {
            string lj = path + "0.jpg";

            if (System.IO.File.Exists(filePath))
            {
            }
            else
            {
                filePath = lj;
            }
            System.Drawing.Image img = System.Drawing.Image.FromFile(filePath);
            System.Drawing.Image bmp = new System.Drawing.Bitmap(img);


            img.Dispose();
            return bmp;
        }



    }
}
